factor_map = {
    "f1_index_qr": ["qr_10", "qr_20", "qr_40", "qr_80", "qr_160"],
    "f2_ma_deviation": ["ma_deviation_6", "ma_deviation_12", "ma_deviation_24", "ma_deviation_48", "ma_deviation_96"],
    "f3_atr": ["atr_6", "atr_12", "atr_24", "atr_48", "atr_96"],
    "f4_volume": ["volume1", "volume2"],
    "f5_position": ["position1", "position5", "position30"],
    "f6_time": ["time_since_open", "time_to_close"],
    "f7_pattern": ["support_3", "support_6", "support_15", "pressure_3", "pressure_6", "pressure_15"],
    "f8_candle": ["c1", "c2", "c3", "c4", "c5", "c6"]
}


all_factor_names = []
for names in factor_map.values():
    all_factor_names.extend(names)
